import java.util.*;

public class CheckHoliday{
	BitSet day;

	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		String putin = in.next();
		
		CheckHoliday aDay = new CheckHoliday();
		if(aDay.isHoliday(putin)) System.out.println("Yes!It is Holiday!!");
		else System.out.println("Sorry!It isn`t Holiday! :(");
	}
	
	public CheckHoliday(){
		day = new BitSet(365);
		int[] holiday = {1,15,45,148,324,359};

		for(int i =0;i<holiday.length;i++){
			setHoliday(holiday[i]);
		}

	}

	public void setHoliday(int index){
		index = index-1;
		day.set(index);
	}

	public boolean isHoliday(String args){
		int inDay = Integer.parseInt(args);
		inDay = inDay - 1;
		return day.get(inDay);
	}

	
}